const router = [
  {
    title: '控制台',
    icon: 'laptop',
    key: '/index',
    // role:['admin']
  },
  {
    title: '用户管理',
    icon: 'laptop',
    key: '/index/user',
    // role:['user'],
    child: [
      {key: '/index/user/list', title: '用户列表', icon: '',},
      {
        key: '/index/user/add', 
        title: '添加用户', 
        icon: '',
        // role:['user'],
      }
    ]
  },
  {
    title: '部门管理',
    icon: 'bars',
    key: '/index/department',
    child: [
      {key: '/index/department/list', title: '部门列表', icon: ''},
      {key: '/index/department/add', title: '添加部门', icon: ''},
    ]
  },
  {
    title: '职位管理',
    icon: 'edit',
    key: '/index/job',
    child: [
      {key: '/index/job/list', title: '职位列表', icon: ''},
      {key: '/index/job/add', title: '添加职位', icon: ''}
    ]
  },
  {
    title: '职员管理',
    icon: 'edit',
    key: '/index/staff',
    child: [
      {key: '/index/staff/list', title: '职员列表', icon: ''},
      {key: '/index/staff/add', title: '添加职员', icon: ''}
    ]
  },
  {
    title: '请假',
    icon: 'info-circle-o',
    key: '/home/about'
  },
  {
    title: '加班',
    icon: 'info-circle-o',
    key: '/home/abouta'
  }
]
export default router;